import request from "../utlis/request";

//获取签到数据
export const sign = data => {
  return request({
    url: "/routes/api/index/sign",
    method: "POST",
    data
  });
};
// 点击签到
export const signss = data => {
  return request({
    url: "/routes/api/index/signss",
    method: "POST",
    data
  });
};
// 兑换积分列表数据
export const hsignlist = data => {
  return request({
    url: "/routes/api/index/hsignlist",
    method: "POST",
    data
  });
};
// 我的也 待收货 已发货
export const sites = data => {
  return request({
    url: "/routes/api/index/sites",
    method: "POST",
    data
  });
};
// 收藏页数据
export const cillse = data => {
  return request({
    url: "/routes/api/index/cillse",
    method: "POST",
    data
  });
};
// 收藏页 我猜我喜欢的数据
export const cillseers = data => {
  return request({
    url: "/routes/api/index/cillseers",
    method: "POST",
    data
  });
};
// 点击保存收货地址
export const honSave = data => {
  console.log(data);
  return request({
    url: "/routes/api/index/honSave",
    method: "POST",
    data
  });
};
//获取地址接口
export const sitetgh = data => {
  return request({
    url: "/routes/api/index/sitetgh",
    method: "POST",
    data
  });
};
// 点击地址单选框
export const hsiteselect = data => {
  return request({
    url: "/routes/api/index/hsiteselect",
    method: "POST",
    data
  });
};

//点击更换图片
export const hpictur = data => {
  console.log(data);
  return request({
    url: "/routes/api/index/hpictur",
    method: "POST",
    data
  });
};
//修改昵称
export const hsetname = data => {
  return request({
    url: "/routes/api/index/hsetname",
    method: "POST",
    data
  });
};
//收藏数据
export const hcillse = data => {
  return request({
    url: "/routes/api/index/hcillse",
    method: "POST",
    data
  });
};
//收藏 加入购物车
export const cartpes = data => {
  return request({
    url: "/routes/api/index/cartpes",
    method: "POST",
    data
  });
};
//收藏 移除
export const remomo = data => {
  return request({
    url: "/routes/api/index/remomo",
    method: "POST",
    data
  });
};
//积分存数据库
export const integer = data => {
  return request({
    url: "/routes/api/index/integer",
    method: "POST",
    data
  });
};
// 兑换商品接口
export const conver = data => {
  return request({
    url: "/routes/api/index/conver",
    method: "POST",
    data
  });
};
//我的也 获取积分
export const getToken = data => {
  return request({
    url: "/routes/api/index/getToken",
    method: "POST",
    data
  });
};
//获取待收货的数据
export const shopdata = data => {
    return request({
        url: "/routes/api/index/shopdata",
        method: "POST",
        data
    });
};


// 赵孟凡写的请求聊天记录接口
export function getMessage(data) {
  return request({
    url: "/routes/api/index/getMessage",
    method: "POST",
    data
  });
}
